package com.portal.incurridos.persistence.utilities;

import java.util.Locale;

/**
 * @author Alan Dávila
 * date Jul 5, 2013 7:56:11 PM
 */
public final class Configuracion {

	/**
	 * Configuration for language.
	 */
    private static Configuracion configuracion;
    /**
     * Object for language.
     */
    private Locale idioma;

    /**
     * Default constuctor.
     */
    private Configuracion() {

    }

    /**
     * Method for Singleton about language.
     * @return Singleton object with language.
     */
    public static Configuracion newInstance() {
        if (configuracion == null) {
            configuracion = new Configuracion();
        }
        return configuracion;
    }

    /**
     * @return the idioma
     */
    public Locale getIdioma() {
        return idioma;
    }

    /**
     * @param idiomaIn the idioma to set
     */
    public void setIdioma(final Locale idiomaIn) {
        this.idioma = idiomaIn;
    }
}
